import java.io.File;
import java.io.FilenameFilter;

import drive.DriveLocations;


public class CleanMain {

	private static final String INPUT_FOLDER_PATH = DriveLocations.CLYDE + "/Temp/cleanup/input";
	private static final String INPUT_BOOT_FOLDER_PATH = DriveLocations.CLYDE + "/Temp/cleanup/inputboot";
	
	public static void main(String[] args) {
		new CleanMain().run();
	}

	private void run() {
		File inputDir = new File(INPUT_FOLDER_PATH);
		File[] links = inputDir.listFiles(new FilenameFilter() {
			
			@Override
			public boolean accept(File parent, String name) {
				return name.endsWith(".link");
			}
		});
		
		for (int i = 0; i < links.length; i++) {
			String name = links[i].getName();
			String title = name.substring(0, name.length() - 5);
			System.out.println(title);
		}
	}

}
